package com.lhkj.ct.meta.modules.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhkj.ct.meta.modules.auth.common.enums.UserType;
import com.lhkj.ct.meta.modules.auth.entity.TblUserIdentity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 第三方授权表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2023-11-13
 */
public interface UserIdentityMapper extends BaseMapper<TblUserIdentity> {

    @Select("select id, user_id, user_type, identifier, ident_type, create_time, update_time from tbl_user_identity where user_id = #{userId} and user_type = #{userType}")
    List<TblUserIdentity> selectByUserId(@Param("userId") String userId,@Param("userType") UserType userType);
}
